<?php

namespace App\Sdks\Ali\Traits;

trait AccessKey
{
    /**
     * @var
     * 通信证id
     */
    protected $accessKeyId;

    /**
     * @var
     * 通行证密钥
     */
    protected $accessKeySecret;

    /**
     * @param $accessKeyId
     * @param $accessKeySecret
     * @return bool
     * 设置通行证
     */
    public function setAccessKey($accessKeyId, $accessKeySecret){
        $this->accessKeyId = $accessKeyId;
        $this->accessKeySecret = $accessKeySecret;
        return true;
    }

    /**
     * @return mixed
     * 获取通行证id
     */
    public function getAccessKeyId(){
        return $this->accessKeyId;
    }

    /**
     * @return mixed
     * 获取通行证密钥
     */
    public function getAccessKeySecret(){
        return $this->accessKeySecret;
    }
}
